﻿using System;
using NguyenHoa.Domains;
using NguyenHoa.Services;
using NguyenHoa.Web.App_Code;

namespace NguyenHoa.Web.Pages
{
  public partial class RecruitmentInfo : BasePage
  {
    protected void Page_Load(object sender, EventArgs e)
    {
      if (!IsPostBack && !IsCallback)
      {
        LoadContent();
      }
    }

    private void LoadContent()
    {
      TList<HtmlContent> contentList = new HtmlContentService().GetByTypeAndLanguage(TypeId, CurrentLanguage.Id);
      if (contentList.Count > 0)
      {
        ltrContent.Text = contentList[0].Content;
      }
    }
  }
}
